package com.ugoodtech.mdcc.core.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@ApiModel("技术颜色能力报告-改(暂存表)")
@Entity
@Table(name = "station_color_report_temp")
public class StationColorReportTemp extends BaseEntity {

    @ApiModelProperty("问题ID")
    private Long questionId;

    @ApiModelProperty("答案ID")
    private String answerId;

    @ApiModelProperty("文本框答案")
    private String answerOther;

    @ApiModelProperty("附带照片")
    private String answerPhoto;

    @JsonIgnore
    @ApiModelProperty("对应的报告")
    private StationReportTemp stationReportUnFinshed;

    @Column(name = "question_id")
    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    @Column(name = "answer_id")
    public String getAnswerId() {
        return answerId;
    }

    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }

    @Column(name = "answer_other_id")
    public String getAnswerOther() {
        return answerOther;
    }

    public void setAnswerOther(String answerOther) {
        this.answerOther = answerOther;
    }

    @Column(name = "photo")
    public String getAnswerPhoto() {
        return answerPhoto;
    }

    public void setAnswerPhoto(String answerPhoto) {
        this.answerPhoto = answerPhoto;
    }

    @JsonIgnore
    @ManyToOne
    @JoinColumn(name = "report_id")
    public StationReportTemp getStationReportUnFinshed() {
        return stationReportUnFinshed;
    }

    public void setStationReportUnFinshed(StationReportTemp stationReportUnFinshed) {
        this.stationReportUnFinshed = stationReportUnFinshed;
    }

}
